home *** CD-ROM | disk | FTP | other *** search
- /*
- * rpcDelay.c --
- *
- * Get perferred machine dependent inter-packet delays for rpcs.
- *
- * Copyright 1988 Regents of the University of California
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appear in all copies. The University of California
- * makes no representations about the suitability of this
- * software for any purpose. It is provided "as is" without
- * express or implied warranty.
- */
-
- #ifndef lint
- static char rcsid[] = "$Header: /cdrom/src/kernel/Cvsroot/kernel/rpc/sun3.md/rpcDelays.c,v 9.0 89/09/12 15:18:51 douglis Stable $ SPRITE (Berkeley)";
- #endif not lint
-
-
- #include "sprite.h"
- #include "mach.h"
- #include "sys.h"
-
-
- /*
- *----------------------------------------------------------------------
- *
- * RpcGetMachineDelay --
- *
- * Get preferred inter-fragment delay for input and output packets.
- *
- * Results:
- * None.
- *
- * Side effects:
- * None.
- *
- *----------------------------------------------------------------------
- */
-
- void
- RpcGetMachineDelay(myDelayPtr, outputRatePtr)
- unsigned short *myDelayPtr; /* Preferred delay in microseconds
- * between successive input packets.
- */
- unsigned short *outputRatePtr; /* Delay in microseconds between
- * successive output packets.
- */
- {
-
- switch(Mach_GetMachineType()) {
- default:
- case SYS_SUN_2_120:
- *myDelayPtr = 2000;
- *outputRatePtr = 2000;
- break;
- case SYS_SUN_2_50: /* Same as SYS_SUN_2_160 */
- *myDelayPtr = 1000;
- *outputRatePtr = 1000;
- break;
- case SYS_SUN_3_60:
- case SYS_SUN_3_75: /* Same as SYS_SUN_3_160 */
- *myDelayPtr = 500;
- *outputRatePtr = 500;
- break;
- }
- }
-
-